package my.test;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.test.BigWheelDrawUtil;
import com.yuhang.demo.util.PostUtil;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.io.IOException;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.*;

public class Tst {

    public static void main(String[] args) throws IOException {

        LocalDate date = LocalDate.now();
        String time = date.plusDays(-1).toString();


        System.out.println(time);


    }


    private static String getYxIp(List<String> list){
        if(list==null || list.size()<=0){
            return null;
        }
        //打乱顺序
        Collections.shuffle(list);
        return list.get(0);
    }

    public static String valiToken() throws IOException {
        String url = "http://apifahuo.go2b2b.com/taobao/valiToken";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("nick", "云汇尖选"));
        formparams.add(new BasicNameValuePair("userId", "100"));
        return PostUtil.httpPost(url, formparams);
    }

}
